<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: ComunicacionesController</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">ComunicacionesController</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../files/app/controllers/comunicaciones_controller_rb.html">
                app/controllers/comunicaciones_controller.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="ApplicationController.html">
                ApplicationController
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000141">create</a>&nbsp;&nbsp;
      <a href="#M000143">delete</a>&nbsp;&nbsp;
      <a href="#M000144">destroy</a>&nbsp;&nbsp;
      <a href="#M000140">edit</a>&nbsp;&nbsp;
      <a href="#M000137">for_cuenta</a>&nbsp;&nbsp;
      <a href="#M000136">index</a>&nbsp;&nbsp;
      <a href="#M000139">new</a>&nbsp;&nbsp;
      <a href="#M000138">show</a>&nbsp;&nbsp;
      <a href="#M000142">update</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000141" class="method-detail">
        <a name="M000141"></a>

        <div class="method-heading">
          <a href="#M000141" class="method-signature">
          <span class="method-name">create</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Crear comunicación
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000141-source">
<pre>
    <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 83</span>
83:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
84: 
85:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000143" class="method-detail">
        <a name="M000143"></a>

        <div class="method-heading">
          <a href="#M000143" class="method-signature">
          <span class="method-name">delete</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Borrar la comunicación
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000143-source">
<pre>
     <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 104</span>
104:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
105:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000144" class="method-detail">
        <a name="M000144"></a>

        <div class="method-heading">
          <a href="#M000144" class="method-signature">
          <span class="method-name">destroy</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Borrar la comunicación
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000144-source">
<pre>
     <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 108</span>
108:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">destroy</span>
109: 
110:     <span class="ruby-ivar">@comunicacion</span> = <span class="ruby-constant">Comunicacion</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])    
111:     <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">get_mod_cuenta</span>(<span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">cuenta</span>)
112:                 <span class="ruby-identifier">redirect_to</span>(<span class="ruby-value str">'/cuentas'</span>)
113:         <span class="ruby-keyword kw">else</span>    
114:                 <span class="ruby-ivar">@cuenta</span> = <span class="ruby-constant">Cuenta</span>.<span class="ruby-identifier">find</span>(<span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">cuenta_id</span>)
115:           <span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">destroy</span>
116:         <span class="ruby-identifier">respond_to</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
117:                 <span class="ruby-identifier">format</span>.<span class="ruby-identifier">js</span>
118:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span>(<span class="ruby-identifier">cuenta_comunicaciones_path</span> (<span class="ruby-ivar">@cuenta</span>)) }
119:           <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">head</span> <span class="ruby-identifier">:ok</span> }
120:         <span class="ruby-keyword kw">end</span>
121:     <span class="ruby-keyword kw">end</span> 
122:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000140" class="method-detail">
        <a name="M000140"></a>

        <div class="method-heading">
          <a href="#M000140" class="method-signature">
          <span class="method-name">edit</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Editar comunicaciones
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000140-source">
<pre>
    <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 72</span>
72:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>
73:     <span class="ruby-ivar">@comunicacion</span> = <span class="ruby-constant">Comunicacion</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
74:     <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">get_mod_cuenta</span>(<span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">cuenta</span>)
75:                 <span class="ruby-identifier">redirect_to</span>(<span class="ruby-value str">'/cuentas'</span>)
76:         <span class="ruby-keyword kw">else</span>
77:         <span class="ruby-ivar">@cuenta</span> = <span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">cuenta_id</span>
78:         <span class="ruby-keyword kw">end</span>
79:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000137" class="method-detail">
        <a name="M000137"></a>

        <div class="method-heading">
          <a href="#M000137" class="method-signature">
          <span class="method-name">for_cuenta</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Busca las comunicación segun su tipo
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000137-source">
<pre>
    <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 15</span>
15:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">for_cuenta</span>        
16:                 <span class="ruby-ivar">@colspan</span> = <span class="ruby-value">3</span>
17:                <span class="ruby-ivar">@movimiento</span> = <span class="ruby-constant">Movimiento</span>.<span class="ruby-identifier">new</span>
18:                 <span class="ruby-ivar">@reunion</span> = <span class="ruby-constant">Reunion</span>.<span class="ruby-identifier">new</span>
19:                 <span class="ruby-ivar">@venta</span> = <span class="ruby-constant">Venta</span>.<span class="ruby-identifier">new</span>
20:                 <span class="ruby-ivar">@cuenta</span> = <span class="ruby-constant">Cuenta</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:cuenta_id</span>])
21:                 <span class="ruby-ivar">@titulo</span> = <span class="ruby-value str">'Comunicaciones de '</span> <span class="ruby-operator">+</span><span class="ruby-ivar">@cuenta</span>.<span class="ruby-identifier">razon_social</span>  
22:                 <span class="ruby-identifier">contacto_id</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:contacto_id</span>]
23:                 <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">contacto_id</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">then</span>
24:                         <span class="ruby-ivar">@contacto</span> = <span class="ruby-constant">Contacto</span>.<span class="ruby-identifier">find_by_id</span>(<span class="ruby-identifier">contacto_id</span>.<span class="ruby-identifier">to_i</span>)
25:                         <span class="ruby-ivar">@movimientos</span> = <span class="ruby-constant">Movimiento</span>.<span class="ruby-identifier">search_con</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:mov_page</span>],<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:contacto_id</span>])
26:                         <span class="ruby-ivar">@reuniones</span> = <span class="ruby-constant">Reunion</span>.<span class="ruby-identifier">search_con</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:reu_page</span>],<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:contacto_id</span>])
27:                         <span class="ruby-ivar">@ventas</span> = <span class="ruby-constant">Venta</span>.<span class="ruby-identifier">search_con</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:ven_page</span>],<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:contacto_id</span>])
28:                         <span class="ruby-ivar">@titulo</span> = <span class="ruby-ivar">@titulo</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' - '</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@contacto</span>.<span class="ruby-identifier">nombre</span>
29:                 <span class="ruby-keyword kw">else</span>
30:                         <span class="ruby-ivar">@movimientos</span> = <span class="ruby-constant">Movimiento</span>.<span class="ruby-identifier">search</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:mov_page</span>],<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:cuenta_id</span>])
31:                         <span class="ruby-ivar">@reuniones</span> = <span class="ruby-constant">Reunion</span>.<span class="ruby-identifier">search</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:reu_page</span>],<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:cuenta_id</span>])
32:                         <span class="ruby-ivar">@ventas</span> = <span class="ruby-constant">Venta</span>.<span class="ruby-identifier">search</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:ven_page</span>],<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:cuenta_id</span>])
33:                 
34:                 <span class="ruby-keyword kw">end</span>     
35:                 
36:         <span class="ruby-identifier">respond_to</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span> 
37:                         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">js</span>   {<span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'comunicaciones/all'</span> }
38:                 <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;index&quot;</span>}
39:       <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:xml</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@comunicacion</span> }
40:         <span class="ruby-keyword kw">end</span>
41:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000136" class="method-detail">
        <a name="M000136"></a>

        <div class="method-heading">
          <a href="#M000136" class="method-signature">
          <span class="method-name">index</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Devuelve todas las comunicaciones para ser mostradas en pantalla
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000136-source">
<pre>
    <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 6</span>
 6:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
 7:         <span class="ruby-ivar">@comunicaciones</span> = <span class="ruby-constant">Comunicacion</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>)
 8:     <span class="ruby-identifier">respond_to</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
 9:       <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment cmt"># index.html.erb</span>
10:       <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:xml</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@comunicaciones</span> }
11:     <span class="ruby-keyword kw">end</span>
12:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000139" class="method-detail">
        <a name="M000139"></a>

        <div class="method-heading">
          <a href="#M000139" class="method-signature">
          <span class="method-name">new</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Crear comunicaciones
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000139-source">
<pre>
    <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 56</span>
56:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>
57:         
58:         <span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:user_id</span>])
59:         <span class="ruby-ivar">@cuenta</span> = <span class="ruby-constant">Cuenta</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:user_id</span>])
60:         <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">get_mod_cuenta</span>(<span class="ruby-ivar">@cuenta</span>)
61:                 <span class="ruby-identifier">redirect_to</span>(<span class="ruby-value str">'/cuentas'</span>)
62:         <span class="ruby-keyword kw">else</span>                   
63:         <span class="ruby-ivar">@comunicacion</span> = <span class="ruby-constant">Comunicacion</span>.<span class="ruby-identifier">new</span>
64:                         <span class="ruby-identifier">respond_to</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
65:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment cmt"># new.html.erb</span>
66:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:xml</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@comunicacion</span> }
67:         <span class="ruby-keyword kw">end</span>
68:     <span class="ruby-keyword kw">end</span>
69:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000138" class="method-detail">
        <a name="M000138"></a>

        <div class="method-heading">
          <a href="#M000138" class="method-signature">
          <span class="method-name">show</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Muestra la comunicación segun su tipo
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000138-source">
<pre>
    <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 44</span>
44:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
45:     <span class="ruby-ivar">@movimientos</span> = <span class="ruby-constant">Movimiento</span>.<span class="ruby-identifier">find_by_cuenta_id</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
46:     <span class="ruby-ivar">@reuniones</span> = <span class="ruby-constant">Reunion</span>.<span class="ruby-identifier">find_by_cuenta_id</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
47:     <span class="ruby-ivar">@ventas</span> = <span class="ruby-constant">Venta</span>.<span class="ruby-identifier">find_by_cuenta_id</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
48: 
49:     <span class="ruby-identifier">respond_to</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
50:       <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment cmt"># show.html.erb</span>
51:       <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:xml</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@comunicacion</span> }
52:     <span class="ruby-keyword kw">end</span>
53:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000142" class="method-detail">
        <a name="M000142"></a>

        <div class="method-heading">
          <a href="#M000142" class="method-signature">
          <span class="method-name">update</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Actualizar las comunicaciones
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000142-source">
<pre>
     <span class="ruby-comment cmt"># File app/controllers/comunicaciones_controller.rb, line 88</span>
 88:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>
 89:     <span class="ruby-ivar">@comunicacion</span> = <span class="ruby-constant">Comunicacion</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
 90:         <span class="ruby-ivar">@cuenta</span> = <span class="ruby-constant">Cuenta</span>.<span class="ruby-identifier">find</span>(<span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">cuenta_id</span>)
 91:     <span class="ruby-identifier">respond_to</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
 92:       <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:comunicacion</span>])
 93:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">js</span>
 94:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span>(<span class="ruby-identifier">cuenta_comunicaciones_path</span> (<span class="ruby-ivar">@cuenta</span>)) }
 95:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">head</span> <span class="ruby-identifier">:ok</span> }
 96:       <span class="ruby-keyword kw">else</span>
 97:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;edit&quot;</span> }
 98:         <span class="ruby-identifier">format</span>.<span class="ruby-identifier">xml</span>  { <span class="ruby-identifier">render</span> <span class="ruby-identifier">:xml</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@comunicacion</span>.<span class="ruby-identifier">errors</span>, <span class="ruby-identifier">:status</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:unprocessable_entity</span> }
 99:       <span class="ruby-keyword kw">end</span>
100:     <span class="ruby-keyword kw">end</span>
101:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>